import java.util.Random;

public class PingpangCoach extends Coach implements EnglishSpeakable {
   private int traineeCount;

    public PingpangCoach() {
    }

    public PingpangCoach(String name, int age) {
        super(name, age);
        this.traineeCount = 0;
    }

    @Override
    public void teach() {
        Random random = new Random();
        int randomNum = random.nextInt(8)+1;
        traineeCount += randomNum;
        System.out.println("我正在教乒乓球学员如何握拍、发力和控制球");
    }

    @Override
    public void introduce() {
        super.introduce();
    }

    @Override
    public void speakEnglish() {
        System.out.println("我会说英语，Let's play table tennis!");
    }

    public void showTraineeStats() {
        System.out.println(getName() + " 已经指导了 " + traineeCount + " 名学员。");
    }

}
